package cn.wolfcode.p2p.bussness.service;

import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.bussness.domain.PaymentScheduleDetail;
import com.github.pagehelper.PageInfo;

import java.util.Date;

public interface IPaymentScheduleDetailService {
    int save(PaymentScheduleDetail paymentScheduleDetail);

    int update(PaymentScheduleDetail paymentScheduleDetail);

    PaymentScheduleDetail get(Long id);

    PageInfo queryPage(QueryObject qo);

    /**
     * 根据paymentScheduleId
     * @param paymentScheduleId 还款对象ID
     * @param payDate           还款日期
     */
    void updatePayDate(Long paymentScheduleId, Date payDate);
}
